using Org.OpenTrader.Framework.Forge.Interfaces;

namespace Org.OpenTrader.Framework.Forge.UI.Forms
{
    using Framework.Events;

    partial class UILayerList
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            foreach (var plugin in service.Plugins)
            {
                Devel.NoThrow(delegate()
                {
                    var layer = plugin as ILayer;
                    layer.ConnectionEventCB -= this.OnConnectionEvent;
                });
            }

            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.uiVirtualGrid1 = new Org.OpenTrader.Framework.UI.Forms.UIVirtualGrid();
            this.Plugin = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Connection = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Status = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Action = new System.Windows.Forms.DataGridViewButtonColumn();
            ((System.ComponentModel.ISupportInitialize)(this.uiVirtualGrid1)).BeginInit();
            this.SuspendLayout();
            // 
            // uiVirtualGrid1
            // 
            this.uiVirtualGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.uiVirtualGrid1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.Plugin,
            this.Connection,
            this.Status,
            this.Action});
            this.uiVirtualGrid1.Location = new System.Drawing.Point(0, 0);
            this.uiVirtualGrid1.Name = "uiVirtualGrid1";
            this.uiVirtualGrid1.RefreshPeriodTotalMilliSeconds = 200;
            this.uiVirtualGrid1.Size = new System.Drawing.Size(797, 299);
            this.uiVirtualGrid1.TabIndex = 0;
            this.uiVirtualGrid1.UIGridQueryRowCount += new System.EventHandler<VirtualGridEventArgs.QueryRowCount>(this.OnVirtualGrid1UIGridQueryRowCount);
            this.uiVirtualGrid1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.OnVirtualGrid1CellClick);
            this.uiVirtualGrid1.UIGridQueryCellInfo += new System.EventHandler<VirtualGridEventArgs.QueryCellInfo>(this.OnVirtualGrid1UIGridQueryCellInfo);
            // 
            // Plugin
            // 
            this.Plugin.HeaderText = "Plugin";
            this.Plugin.Name = "Plugin";
            this.Plugin.ReadOnly = true;
            this.Plugin.ToolTipText = "Class implementing the IPlugin interface";
            this.Plugin.Width = 200;
            // 
            // Connection
            // 
            this.Connection.HeaderText = "Connection";
            this.Connection.Name = "Connection";
            this.Connection.ReadOnly = true;
            this.Connection.ToolTipText = "Connection String";
            this.Connection.Width = 380;
            // 
            // Status
            // 
            this.Status.HeaderText = "Status";
            this.Status.Name = "Status";
            this.Status.ReadOnly = true;
            this.Status.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Status.ToolTipText = "Current state of the Connection";
            // 
            // Action
            // 
            this.Action.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.Action.HeaderText = "Action";
            this.Action.Name = "Action";
            this.Action.ReadOnly = true;
            this.Action.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Action.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Action.ToolTipText = "Connect / Disconnect";
            // 
            // UILayerList
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.uiVirtualGrid1);
            this.Name = "UILayerList";
            this.Size = new System.Drawing.Size(800, 299);
            ((System.ComponentModel.ISupportInitialize)(this.uiVirtualGrid1)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private Org.OpenTrader.Framework.UI.Forms.UIVirtualGrid uiVirtualGrid1;
        private System.Windows.Forms.DataGridViewTextBoxColumn Plugin;
        private System.Windows.Forms.DataGridViewTextBoxColumn Connection;
        private System.Windows.Forms.DataGridViewTextBoxColumn Status;
        private System.Windows.Forms.DataGridViewButtonColumn Action;
    }
}
